package com.motong.gongdan.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author:fff
 * @time:2022/3/3
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("mission")
@Accessors(chain = true)
public class Mission extends PublicPo{
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("work_order_code")
    private String workOrderCode;
    @TableField("product_code")
    private String productCode;
    @TableField("process_code")
    private String processCode;
    @TableField("planed_number")
    private BigDecimal planedNumber;
    @TableField("good_product_number")
    private BigDecimal goodProductNumber;
    @TableField("bad_product_number")
    private BigDecimal badProductNumber;
    @TableField("process_state")
    private Integer processState;
    @TableField("actual_start_time")
    private Date actualStartTime;
    @TableField("actual_end_time")
    private Date actualEndTime;
    private Integer last;
    @TableField("start_time")
    private Date startTime;
    @TableField("end_time")
    private Date endTime;
    @TableField(value = "distribution_list",updateStrategy = FieldStrategy.NOT_NULL)
    private String distributionList;
    @TableField("rate")
    private BigDecimal rate;
    @TableField("process_collection_data")
    private String processCollectionData;
    @TableField("process_other")
    private String processOther;

    //工序名称
    @TableField(exist = false)
    private String processName;
    //待完成数量
    @TableField(exist = false)
    private BigDecimal unFinishNum;
    @TableField(exist = false)
    private JSONArray customFieldMess;
    //是否加急
    @TableField("is_urgent")
    private Integer isUrgent;

}
